import request from '@/utils/request'
import qs from 'qs';

const baseUrl = "http://localhost:8080/api";

// 获取全部用户信息
export function getUserList() {
    return request({
        url: `${baseUrl}/getUser`,
        method: 'post',

    })
}

// 权限限制
export function reqUserState(data) {
    return request({
        url: `${baseUrl}/setUserState`,
        method: 'post',
        data: qs.stringify(data)
    })
}